<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Lemon
  Date: 2020/6/11
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <title>客户信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css"  media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <style type="text/css">
        .customerInfo-table-class tr td:nth-child(even){text-align: left;}
        .customerInfo-table-class tr td:nth-child(odd){text-align: right;}
    </style>
</head>
<body >
<div style="width: 96%;margin-left: 2%;">
    <div class="layui-tab layui-tab-card">
        <div class="layui-tab-item  layui-show">
            <table class="layui-table" lay-skin="col">
                <colgroup>
                    <col width="20%">
                    <col width="30%">
                    <col width="20%">
                    <col width="30%">
                </colgroup>
                <tbody class="customerInfo-table-class">
                <tr>
                    <td>客户名称：</td>
                    <td id="name">${customer.name}</td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>客户创建者：</td>
                    <td id="creater">${customer.creater_name}</td>
                    <td>客户创建时间：</td>
                    <td id="create_time"><fmt:formatDate value="${customer.create_time}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                </tr>
                <tr>
                    <td>公司电话：</td>
                    <td id="company_phone">${customer.company_phone}</td>
                    <td>意向产品：</td>
                    <td id="product_id">${customer.product_id}</td>
                </tr>
                <tr>
                    <td>客户状态：</td>
                    <td id="status">${customer.status}</td>
                    <td>客户类别：</td>
                    <td id="type">${customer.type}</td>
                </tr>
                <tr>
                    <td>客户来源：</td>
                    <td id="source">${customer.source}</td>
                    <td>客户等级：</td>
                    <td id="levels">${customer.levels}</td>
                </tr>
                <tr>
                    <td>客户信用度：</td>
                    <td id="credit">${customer.credit}</td>
                    <td>客户成熟度：</td>
                    <td id="maturity">${customer.maturity}</td>
                </tr>
                <tr>
                    <td>客户所在地区：</td>
                    <td id="area">${customer.area}</td>
                    <td>邮政编码：</td>
                    <td id="post_code">${customer.post_code}</td>
                </tr>
                <tr>
                    <td colspan="1">客户详细地址：</td>
                    <td colspan="3" id="company_address">${customer.company_address}</td>
                </tr>
                <tr>
                    <td colspan="1">客户相关资料：</td>
                    <td colspan="3" id="document">${customer.document}</td>
                </tr>
                <tr>
                    <td colspan="1">客户介绍：</td>
                    <td colspan="3" id="description">${customer.description}</td>
                </tr>
                <tr>
                    <td>传真地址：</td>
                    <td id="fax_address">${customer.fax_address}</td>
                    <td>公司网站：</td>
                    <td id="company_website">${customer.company_website}</td>
                </tr>
                <tr>
                    <td>公司法人：</td>
                    <td id="corporation">${customer.corporation}</td>
                    <td>开户银行：</td>
                    <td id="deposit_bank">${customer.deposit_bank}</td>
                </tr>
                <tr>
                    <td colspan="1">银行账户：</td>
                    <td colspan="3" id="bank_account">${customer.bank_account}</td>
                </tr>
                <tr>
                    <td colspan="1">年营业额：</td>
                    <td colspan="3" id="annual_sale">${customer.annual_sale}</td>
                </tr>
                <tr>
                    <td colspan="1">营业执照注册号：</td>
                    <td colspan="3" id="license_number">${customer.license_number}</td>
                </tr>
                <tr>
                    <td colspan="1">地税登记号：</td>
                    <td colspan="3" id="land_tax_number">${customer.land_tax_number}</td>
                </tr>
                <tr>
                    <td colspan="1">国税登记号：</td>
                    <td colspan="3" id="national_tax_number">${customer.national_tax_number}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/static/layui/layui.js" charset="utf-8"></script>
<script>
    layui.use(['table','element','jquery','layer','form','laydate','layedit'], function() {
        var table = layui.table;
        var $ = layui.jquery
            ,element = layui.element;
        var layer = layui.layer;
        var form = layui.form;
        var laydate = layui.laydate;

    });
</script>
</body>
</html>